//
//  WelcomeViewController.swift
//  Weibo
//
//  Created by .. on 16/5/2.
//  Copyright © 2016年 Lizhuo. All rights reserved.
//

import UIKit

class WelcomeViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        //1.添加子控件
        view.addSubview(bgIV)
        
        //2.布局子控件
        bgIV.xmg_Fill(view)
        
        UIView.animateWithDuration(2) { 
            NSNotificationCenter.defaultCenter().postNotificationName(LZSwitchRootViewController, object: true)
        }
    }
    

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    // MARK: - 懒加载
    private lazy var bgIV: UIImageView = UIImageView(image: UIImage(named: "ad_background"))

}
